﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Communication;
using Clipper.Model;

namespace Clipper.BLL.DetectChain.AddR1AndSample
{
    public class ArmSample : CupComponent
    {
        static ControlStatusEnum detectionStatus;
        /// <summary>
        /// 模块状态
        /// </summary>
        public override Model.ControlStatusEnum DetectionStatus
        {
            get
            {
                return detectionStatus;
            }
            set
            {
                detectionStatus = value;
            }
        }

        public override void Run(Model.ReactionCup cup)
        {
          
            R1SampleHelper.armSample.Imbibe();
            R1SampleHelper.armSample.WaitStatus(1);
            R1SampleHelper.armSample.Inject();
            R1SampleHelper.armR1.WaitRinseTime();//持续清洗
            R1SampleHelper.armSample.WaitStatus(2);
            R1SampleHelper.armSample.Rinse();
            R1SampleHelper.armSample.WaitRinseTime();
            DetectionStatus = ControlStatusEnum.IDLE;
        }
    }
}
